<template>
  <div>
    <Header></Header>
    <SearchBar />
    <Slide :goodCates_list="goodCates_list" :slides_list="slides_list"/>
    <GoodList :titles_list="titles_list" :goods_list="goods_list"/>

    
  </div>
</template>

<script>
import Header from "./Header.vue";
import SearchBar from "./SearchBar.vue";
import Slide from "./Slide.vue";
import GoodList from "./GoodList.vue";
export default {
  name: "Index",
  data() {
    return {
      goodCates_list: [],
      slides_list: [],
      titles_list: [
        {
          id: 1,
          name: "鲜芒",
        },
        {
          id: 2,
          name: "加州提子",
        },
        {
          id: 3,
          name: "亚马逊牛油果",
        },
      ],

      goods_list: [
        {
          id: 1,
          name: "草莓",
          image: "/static/images/goods/goods003.jpg",
          price: 30.0,
        },
        {
          id: 2,
          name: "葡萄",
          image: "/static/images/goods/goods002.jpg",
          price: 5.5,
        },
        {
          id: 3,
          name: "柠檬",
          image: "/static/images/goods/goods001.jpg",
          price: 3.9,
        },
        {
          id: 4,
          name: "奇异果",
          image: "/static/images/goods/goods012.jpg",
          price: 25.8,
        },
      ],
    };
  },
  props: {},

  components: {
    Header,
    SearchBar,
    Slide,
    GoodList,
  },

  created() {},

  mounted() {
    this.getGoodCates();
    this.getSlides();
  },

  methods: {
    // 实现对应的方法
  },

  computed: {},

  watch: {},

  directives: {},

  filters: {},
};
</script>

<style scoped>
* {
  margin: 0;
}
</style>
